require(["common", "coAjax", "jQuery", "queryString", "href", "routie"], function(jSouper, coAjax, $, QueryString, href, routie) {
	routie({
		"*": function() {
			var queryString = new QueryString(location.hash);
			//获取指定页的商品
			coAjax.get(appConfig.goods.list_with_page_info, {
				bus_id: appConfig.bus_id,
				num: ~~queryString.get("num") || 16,
				page: ~~queryString.get("page") || 0
			}, function(result) {
				App.set("$Cache.goods_info", result.result);
			}, function() {
				console.log(arguments);
			});
		}
	});
})